Improve image cache clearing logic (Bug#6230).
authorChong Yidong <cyd@stupidchicken.com>
Fri, 21 May 2010 17:29:27 +0000 (13:29 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 21 May 2010 17:29:27 +0000 (13:29 -0400)
commit673835b9a04ff501efbd524f152bea49c81fb366
tree2f4845857fb9c1e702be1896efdfa36f1618894d
parentd133bbda651ceb968b6935a339837fe4a8352ef8
Improve image cache clearing logic (Bug#6230).

* xdisp.c (redisplay_internal): Clear caches even if redisplaying
just one window.

* image.c (Vimage_cache_eviction_delay): Decrease to 300.
(clear_image_cache): If the number of cached images is unusually
large, decrease the cache eviction delay.
src/ChangeLog
src/image.c
src/xdisp.c